<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: LKSV
  Date: 2021/7/28
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();  //项目名 
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<html>
<head>
    <base href="<%=basePath %>">
    <meta content="text/html;charset=UTF-8">
    <link rel="icon" href="static/favicon.ico"/>
    <script src="https://s3.pstatp.com/cdn/expire-1-M/jquery/3.2.1/jquery.min.js"></script>
    <title> 注册 </title>
</head>
<body>
    <form name="studentReg" method="post" action="student/register">
        昵&nbsp;&nbsp;&nbsp;&nbsp;称：<input type="text" name="student_name" id="student_name" value="record.student_name">
        <span style="color: red">
                   <c:if test="${student_name!=null}">${student_name}</c:if>
                </span>
        <br>

        密&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="text" name="password" id="password">
        <span style="color: red">
                   <c:if test="${password!=null}">${password}</c:if>
                </span>
        <br>

        真实姓名：<input type="text" name="real_name" id="real_name" value="record.real_name">
        <span style="color: red">
                   <c:if test="${real_name!=null}">${real_name}</c:if>
                </span>
        <br>

        年&nbsp;&nbsp;&nbsp;&nbsp;龄：<input type="number" name="age" id="age" value="record.age">
        <span style="color: red">
                   <c:if test="${age!=null}">${age}</c:if>
                </span>
        <br>
        性&nbsp;&nbsp;&nbsp;&nbsp;别：男<input type="radio" name="gender" value="男">&nbsp;&nbsp;
        女<input type="radio" name="gender" value="女"><br>
        <input type="submit" value="注册">
    </form>
</body>
</html>